package com.example.demo.mapper;

import com.example.demo.entity.MenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MenuMapper {

    public String getMenuName();
    public MenuEntity getMenuById(@Param("id") int id);
    public int deleteMenuById(@Param("id") int id);
    public List<MenuEntity> menuList();
    public int addMenu(MenuEntity user);
}
